<img src='partials/TestDataGrids_3_alternateGridFillX.PNG' style='width:400px;float:right'>
<div>
<pre>
<span class='code_snippet' style='font-size: 11px'>

XYDataSeries series = new XYDataSeries(null,
new Line(Color.BLUE, false, 3),
"Blue Series");


series.dataPoints = getSeries1();

XYDataSeries series2 = new XYDataSeries(null,
new Line(Color.RED, false, 3),
"Red Series");
series2.dataPoints = getSeries2();

ArrayList&lt;XYDataSeries&gt; xySeriesList = new ArrayList&lt;XYDataSeries&gt;();

xySeriesList.add(series);
xySeriesList.add(series2);


IntervalStyling stylingX = new IntervalStyling(2,
new Line(Color.GRAY, false, 0),
new GridFill(
new Color(179, 209, 255),
new Color(172, 109, 215), false));

IntervalStyling stylingY = new IntervalStyling(8,
new Line(Color.GRAY, false, 1),
null);

XYChart chart = new XYChart("Alternate Grid Fill", "X Axis", "Y Axis", xySeriesList, null,
stylingX,
null,
null,
stylingY,
null);

chart.setSize(1000, 500);
chart.rightOffset = 200;

</span></pre></div>